package com.bwei.like.mynewstop.view;


import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * Created by LiKe on 2016/11/10.
 */
 class MyGv extends GridView {
    public MyGv(Context context) {
        super(context);
    }

    public MyGv(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MyGv(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }

}
